﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace VueShopApi.Entities 
{
	[JsonObject(MemberSerialization.OptIn), Table(Name = "sp_goods_cats", DisableSyncStructure = true)]
	public partial class SpGoodsCats 
	{
		/// <summary>
		/// 分类id
		/// </summary>
		[JsonProperty("cat_id"), Column(Name = "cat_id", IsPrimary = true, IsIdentity = true)]
		public int CatId { get; set; }

		/// <summary>
		/// 分类名称
		/// </summary>
		[JsonProperty("cat_name"), Column(Name = "cat_name", StringLength = 50, IsNullable = false)]
		public string CatName { get; set; }

		/// <summary>
		/// 分类排序
		/// </summary>
		[JsonProperty("cat_sort"), Column(Name = "cat_sort")]
		public int CatSort { get; set; } = 0;

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty("create_time"), Column(Name = "create_time")]
		public int CreateTime { get; set; }

		/// <summary>
		/// 数据标记
		/// </summary>
		[JsonProperty("data_flag"), Column(Name = "data_flag", DbType = "tinyint(4)")]
		public sbyte DataFlag { get; set; } = 1;

		/// <summary>
		/// 是否显示
		/// </summary>
		[JsonProperty("is_show"), Column(Name = "is_show", DbType = "tinyint(4)")]
		public sbyte IsShow { get; set; } = 1;

		/// <summary>
		/// 父级id
		/// </summary>
		[JsonProperty("parent_id"), Column(Name = "parent_id")]
		public int ParentId { get; set; }

	}

}
